import request from "./request.js";

export function loginUser(account, password) {
  return request.post("/user/login", {
    account,
    password,
  });
}

export function register(account, password,nickname) {
  return request.post("/user/register", {
    account,
    password,
    nickname
  });
}
